package jpa.entitys.promis.construction;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the GOODS_RETURN_NOTE_BUDGET database table.
 * 
 */
@Entity
@Table(name="GOODS_RETURN_NOTE_BUDGET")
public class GoodsReturnNoteBudget extends jpa.entitys.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private GoodsReturnNoteBudgetPK id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="BUILDING_PHASE", length=30)
	private String buildingPhase;

	@Column(name="CONSTRUCTION_BUDGET", precision=22)
	private BigDecimal constructionBudget;

	@Column(name="CONSTRUCTION_COST", precision=22)
	private BigDecimal constructionCost;

	@Column(name="CREATED_BY")
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(name="GOODS_RETURN_NOTE_BUDGET_ID", length=100)
	private String goodsReturnNoteBudgetId;

	@Column(name="GOODS_RETURN_NOTES_ID", length=100)
	private String goodsReturnNotesId;

	@Column(name="GRN_BUDGET_SEQ", precision=4)
	private BigDecimal grnBudgetSeq;

	@Column(name="GRN_NO", precision=6)
	private BigDecimal grnNo;

	@Column(name="GRN_SERIES", length=4)
	private String grnSeries;

	@Column(name="GRN_TYPE", length=3)
	private String grnType;

	@Column(name="GRT_SEQ_NO", precision=4)
	private BigDecimal grtSeqNo;

	@Column(name="ITEM_CODE", length=30)
	private String itemCode;

	@Column(name="ITEM_RATE", precision=22)
	private BigDecimal itemRate;

	@Column(name="ITEM_UM", length=30)
	private String itemUm;

	@Column(name="ITEM_UM_QTY", precision=12, scale=3)
	private BigDecimal itemUmQty;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="PROMOTION_BUDGET", precision=22)
	private BigDecimal promotionBudget;

	@Column(name="PROMOTION_COST", precision=22)
	private BigDecimal promotionCost;

	@Column(name="SERVICES_BUDGET", precision=22)
	private BigDecimal servicesBudget;

	@Column(name="SERVICES_COST", precision=22)
	private BigDecimal servicesCost;

	@Column(length=1)
	private String status;

	@Column(name="SYNC_CREATEDBY", length=100)
	private String syncCreatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY", length=100)
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO", length=100)
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSYNC", length=1)
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY", length=100)
	private String syncUpdatedby;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="TOTAL_AMOUNT", precision=22)
	private BigDecimal totalAmount;

	@Column(name="TOTAL_BUDGET", precision=22)
	private BigDecimal totalBudget;

	@Column(name="TOTAL_COST", precision=22)
	private BigDecimal totalCost;

	@Column(name="UNIT_ID", precision=22)
	private BigDecimal unitId;

	@Column(name="UNIT_NUMBER", length=30)
	private String unitNumber;

	@Column(name="ZONE_CODE", length=30)
	private String zoneCode;

    public GoodsReturnNoteBudget() {
    }

	public GoodsReturnNoteBudgetPK getId() {
		return this.id;
	}

	public void setId(GoodsReturnNoteBudgetPK id) {
		this.id = id;
	}
	
	public String getBuildingPhase() {
		return this.buildingPhase;
	}

	public void setBuildingPhase(String buildingPhase) {
		this.buildingPhase = buildingPhase;
	}

	public BigDecimal getConstructionBudget() {
		return this.constructionBudget;
	}

	public void setConstructionBudget(BigDecimal constructionBudget) {
		this.constructionBudget = constructionBudget;
	}

	public BigDecimal getConstructionCost() {
		return this.constructionCost;
	}

	public void setConstructionCost(BigDecimal constructionCost) {
		this.constructionCost = constructionCost;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getGoodsReturnNoteBudgetId() {
		return this.goodsReturnNoteBudgetId;
	}

	public void setGoodsReturnNoteBudgetId(String goodsReturnNoteBudgetId) {
		this.goodsReturnNoteBudgetId = goodsReturnNoteBudgetId;
	}

	public String getGoodsReturnNotesId() {
		return this.goodsReturnNotesId;
	}

	public void setGoodsReturnNotesId(String goodsReturnNotesId) {
		this.goodsReturnNotesId = goodsReturnNotesId;
	}

	public BigDecimal getGrnBudgetSeq() {
		return this.grnBudgetSeq;
	}

	public void setGrnBudgetSeq(BigDecimal grnBudgetSeq) {
		this.grnBudgetSeq = grnBudgetSeq;
	}

	public BigDecimal getGrnNo() {
		return this.grnNo;
	}

	public void setGrnNo(BigDecimal grnNo) {
		this.grnNo = grnNo;
	}

	public String getGrnSeries() {
		return this.grnSeries;
	}

	public void setGrnSeries(String grnSeries) {
		this.grnSeries = grnSeries;
	}

	public String getGrnType() {
		return this.grnType;
	}

	public void setGrnType(String grnType) {
		this.grnType = grnType;
	}

	public BigDecimal getGrtSeqNo() {
		return this.grtSeqNo;
	}

	public void setGrtSeqNo(BigDecimal grtSeqNo) {
		this.grtSeqNo = grtSeqNo;
	}

	public String getItemCode() {
		return this.itemCode;
	}

	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}

	public BigDecimal getItemRate() {
		return this.itemRate;
	}

	public void setItemRate(BigDecimal itemRate) {
		this.itemRate = itemRate;
	}

	public String getItemUm() {
		return this.itemUm;
	}

	public void setItemUm(String itemUm) {
		this.itemUm = itemUm;
	}

	public BigDecimal getItemUmQty() {
		return this.itemUmQty;
	}

	public void setItemUmQty(BigDecimal itemUmQty) {
		this.itemUmQty = itemUmQty;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public BigDecimal getPromotionBudget() {
		return this.promotionBudget;
	}

	public void setPromotionBudget(BigDecimal promotionBudget) {
		this.promotionBudget = promotionBudget;
	}

	public BigDecimal getPromotionCost() {
		return this.promotionCost;
	}

	public void setPromotionCost(BigDecimal promotionCost) {
		this.promotionCost = promotionCost;
	}

	public BigDecimal getServicesBudget() {
		return this.servicesBudget;
	}

	public void setServicesBudget(BigDecimal servicesBudget) {
		this.servicesBudget = servicesBudget;
	}

	public BigDecimal getServicesCost() {
		return this.servicesCost;
	}

	public void setServicesCost(BigDecimal servicesCost) {
		this.servicesCost = servicesCost;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public BigDecimal getTotalAmount() {
		return this.totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public BigDecimal getTotalBudget() {
		return this.totalBudget;
	}

	public void setTotalBudget(BigDecimal totalBudget) {
		this.totalBudget = totalBudget;
	}

	public BigDecimal getTotalCost() {
		return this.totalCost;
	}

	public void setTotalCost(BigDecimal totalCost) {
		this.totalCost = totalCost;
	}

	public BigDecimal getUnitId() {
		return this.unitId;
	}

	public void setUnitId(BigDecimal unitId) {
		this.unitId = unitId;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public String getZoneCode() {
		return this.zoneCode;
	}

	public void setZoneCode(String zoneCode) {
		this.zoneCode = zoneCode;
	}

}